<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>多媒体娱乐中心</title>
<style>
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    /* 隐藏滚动条但保留滚动功能 */
    body::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

    body {
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 1.6;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }

    #background-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1; /* 置于底层 */
    }

    .container {
        width: 95%;
        padding: 2rem;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        /* backdrop-filter: blur(15px); 
        -webkit-backdrop-filter: blur(15px);*/
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
        color: white;
        z-index: 1;
        position: relative;
    }

    .category {
        margin-bottom: 2rem;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .category-header {
        padding: 1.5rem 2rem;
        background: rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.5rem;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background 0.3s ease;
    }

    .category-header:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .category-content {
        max-height: 0;
        overflow: hidden;
        padding: 2rem;
        background: rgba(255, 255, 255, 0.1);
        transition: max-height 0.3s ease;
    }

    .category-content.show-first-row {
        max-height: calc(120px + 0.5rem + 1.1rem + 4rem); /* 计算第一行图标高度，包含图标、模块名及上下内边距 */
    }

    .icon-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.1rem;
        justify-items: center;
    }
    @media (max-width: 768px) {
        .icon-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    .section-title {
        color: #7bf10d;
        font-size: 2.5rem;
        font-family: 华文隶书;
        text-align: center;
        margin-bottom: 2rem;
        border-radius: 2rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
		background: linear-gradient(
		  90deg,
		  rgba(52, 152, 219, 0.8),
		  rgba(231, 76, 60, 0.8),
		  rgba(243, 156, 18, 0.8),
		  rgba(46, 204, 113, 0.8),
		  rgba(155, 89, 182, 0.8),
		  rgba(52, 152, 219, 0.8)
		);
		background-size: 300% 100%;
		animation: flowing 3s linear infinite;
		z-index: -2;
    }
	 /* 边框流光灯 */
	 @keyframes flowing {
		0% { background-position: 300% 0; }
		100% { background-position: 0% 0; }
	}
    @keyframes char-scale {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.2);
        }
    }

    .char {
        display: inline-block;
        animation: char-scale 1s ease infinite;
    }

    .section-title .char:nth-child(1) {
        animation-delay: 0s;
    }
    .section-title .char:nth-child(2) {
        animation-delay: 0.1s;
    }
    .section-title .char:nth-child(3) {
        animation-delay: 0.2s;
    }
    .section-title .char:nth-child(4) {
        animation-delay: 0.3s;
    }
    .section-title .char:nth-child(5) {
        animation-delay: 0.4s;
    }
    .section-title .char:nth-child(6) {
        animation-delay: 0.5s;
    }
    .section-title .char:nth-child(7) {
        animation-delay: 0.6s;
    }
    @keyframes word-scale {
        0% {
            transform: scale(1);
        }
        10% {
            transform: scale(1.2);
        }
        20% {
            transform: scale(1);
        }
        100% {
            transform: scale(1);
        }
    }
    .icon-btn {
        text-decoration: none;
        color: white;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .icon-btn img {
        width: 120px;
            height: 120px;
        border-radius: 15px;
        object-fit: cover;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
    }

    .icon-btn:hover img {
        transform: scale(1 .05);
    }

    .icon-btn:hover {
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }

    .module-name {
        margin-top: 0.5rem;
        font-size: 1.1rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }


</style>
</head>
<body>
<div class="container">
    <h1 class="section-title">
        <span class="char">多</span>
        <span class="char">媒</span>
        <span class="char">体</span>
        <span class="char">娱</span>
        <span class="char">乐</span>
        <span class="char">中</span>
        <span class="char">心</span>
    </h1>
    <div class="category" id="moviesCategory">
        <div class="category-header" onclick="toggleCategory('moviesCategory')">
            🎬 Movies <span class="arrow">&#9660;</span>
        </div>
        <div class="category-content show-first-row">
            <div class="icon-grid">
                <a href="./movies/vip-crack/index.html" target="_blank" class="icon-btn" >
                    <img src="./img/QQ-vip.jpg" alt="企鹅解析" onerror="handleImageError(this)">
                        <div class="module-name">企鹅解析</div>
                </a>
                <a href="./movies/short-play/playlet-1.html" target="_blank" class="icon-btn">
                    <img src="https://infinityicon.infinitynewtab.com/user-share-icon/fd27d29189f914a5ce49747a4609afb1.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="影视 " onerror="handleImageError(this)">
                        <div class="module-name">短剧接口1</div>
                </a>
                <a href="./movies/short-play/playlet-2.html" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001ear4j09j412tufcau9uswbvzk0.png?imageMogr2/thumbnail/176x/format/webp/blur/1x0/quality/100|imageslim" alt="影视 " onerror="handleImageError(this)">
                        <div class="module-name">短剧接口2</div>
                </a>
                <a href="http://www.njjiaxin.cn/" target="_blank" class="icon-btn">
                    <img src="https://infinityicon.infinitynewtab.com/user-share-icon/451582369e1315c41f8a3fb308b189a7.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                        <div class="module-name">在线影院</div>
                </a>
                <a href="https://v.vcinema.cn/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001e981grtlihbzyvsf1xm0t8e626.png?imageMogr2/thumbnail/176x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                        <div class="module-name">南瓜电影</div>
                </a>
                <a href="https://www.huarong-co.com/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/9001c4hp419h7tvwkk8enfnbak0xtz.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                        <div class="module-name">爱爱妃</div>
                </a>
                <a href="https://www.netflixgc.com/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001co7kju4jys5izjp2qstlp151cz.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                    <div class="module-name">奈飞工厂</div>
                </a>
                <a href="https://www.xiaoheqingting.com/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001eofal3a402ecx9lcmaxgzz245e.png?imageMogr2/thumbnail/176x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                        <div class="module-name">蜻蜓影院</div>
                </a>
                <a href="http://www.cnnewcity.com/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001e4sdqoccs71sildu8g7bweb8vj.png?imageMogr2/thumbnail/176x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                        <div class="module-name">猫咪影院</div>
                </a>
                <a href="https://www.tutouyu.com/" target="_blank" class="icon-btn">
                    <img src="https://infinityicon.infinitynewtab.com/user-share-icon/1b6f9a95f35cf1dd58f673c8cd6e4929.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                        <div class="module-name">一起看</div>
                </a>
                <a href="https://www.caomin2028.com/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/9001cckejge39l4m7tpxlo4p1i1iwt.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                        <div class="module-name">草民影视</div>
                </a>
                <a href="http://www.cshych.com/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001dm708p4jptrpiv2zmkst6k7xlg.png?imageMogr2/thumbnail/176x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                        <div class="module-name">飞行影院</div>
                </a>
                <a href="http://www.lrkkj.com/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001cnbdo8rvia4wtxetruxd6e40uh.png?imageMogr2/thumbnail/176x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                        <div class="module-name">好看电影</div>
                </a>
                <a href="https://www.ouletv8.cc/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001dovajc2poq80zeqb5l7dkt3whl.png?imageMogr2/thumbnail/176x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                        <div class="module-name">欧乐影院</div>
                </a>
                <a href="https://www.jinan001.com/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001e4b6pktp4a5s0rweedt3pihgua.png?imageMogr2/thumbnail/176x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                        <div class="module-name">天狼影院</div>
                </a>
                <a href="http://www.jspkongjian.net/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/9001c12dnqeem4he8ca3jgjyabkavg.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                        <div class="module-name">星辰影院</div>
                </a>
                <a href="https://www.tmjhz.org/" target="_blank" class="icon-btn">
                    <img src="https://infinityicon.infinitynewtab.com/user-share-icon/b4f1154c7257ba1534c52faed254ed02.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="影视" onerror="handleImageError(this)">
                        <div class="module-name">新时代</div>
                </a>
            </div>
        </div>
    </div>

    <div class="category" id="musicCategory">
        <div class="category-header" onclick="toggleCategory('musicCategory')">
            🎵 Music <span class="arrow">&#9660;</span>
        </div>
        <div class="category-content show-first-row">
            <div class="icon-grid">
                <a href="https://www.9ku.com/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001evtmlhejkkfm2rhz4ibqgokfjl.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">九酷音乐</div>
                </a>
                <a href="https://happy.alang.run/#/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/9001c3f57bl988kp2kekb8zovb7vmz.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">1起听歌吧</div>
                </a>
                <a href="https://www.1ting.com/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/9001c7v5t8br9vkxull4t595o2z2yt.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">1听音乐</div>
                </a>
                <a href="https://www.gequbao.com/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/9001calhuf9625opu3oa7wgh8k4hr9.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">歌曲宝</div>
                </a>
                <a href="https://mu-jie.cc/musicBox/#/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/9001c8frfg076a802akp29ugfa3nqj.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">枫叶音乐盒</div>
                </a>
                <a href="http://ainm.cc/c/music/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/9001c8frmkmohc2ay5xrn2kh3xraob.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">柠檬树音乐</div>
                </a>
                <a href="https://xinqiu.96flw.com/mp3/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/9001ch0d5npuya8zfsyg6ra9uzon38.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">音乐解析</div>
                </a>
                <a href="https://daga.cc/yue/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001cmc4drnifsvd9d4nx72troq8n1.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">全名解析</div>
                </a>
                <a href="https://music.ins2.cn/" target="_blank" class="icon-btn">
                    <img src="https://infinityicon.infinitynewtab.com/user-share-icon/643c4a2bb7a0a7b99686837b31b3f65c.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">网易解析1</div>
                </a>
                <a href="https://6li6.com/neteaseCloudMusic" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/9001cjlmkagguuwo0ds84estnzcqd0.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">网易解析2</div>
                </a>
                <a href="https://music.liuzhijin.cn/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001cngiv7qtmadu4m1tcgr3v1pkfg.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">在线解析</div>
                </a>
                <a href="https://tonzhon.com/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001dsbpbdt9jqpycw46jt3f9nkfnt.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">在线铜钟</div>
                </a>
                <a href="https://music.mcya.cn/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001e9t7u0u12mftz561276avawich.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">在线麻鸭</div>
                </a>
                <a href="https://www.tool55.com/yinpin/unmusic" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001e4489837a8n78od4104x1omkd1.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">全网音乐解码1</div>
                </a>
                <a href="https://www.aoqiv.com/audio-unlock/index.html" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001evu8t3imgvxa1004zk0xaw25s5.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">全网音乐解锁2</div>
                </a>
                <a href="https://tool.maxiaobang.com/unlock-music/" target="_blank" class="icon-btn">
                    <img src="https://infinityicon.infinitynewtab.com/user-share-icon/458b977c33c63b53c994a9e5030adc43.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="音乐库" onerror="handleImageError(this)"> 
                        <div class="module-name">全网音乐解锁3</div>
                </a>
            </div>
        </div>
    </div>

    <div class="category" id="gamesCategory">
        <div class="category-header" onclick="toggleCategory('gamesCategory')">
            🎮 Games <span class="arrow">&#9660;</span>
        </div>
        <div class="category-content show-first-row">
            <div class="icon-grid">
                <a href="https://poki.com/zh/html5" target="_blank" class="icon-btn">
                    <img src="https://infinityicon.infinitynewtab.com/usericon/eda08a103ef8e36979c1f68f68297fbe.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="游戏库" onerror="handleImageError(this)">
                        <div class="module-name">Poki库</div>
                </a>
                <a href="https://yandex.com/games/zh" target="_blank" class="icon-btn">
                    <img src="https://infinityicon.infinitynewtab.com/user-share-icon/0135b7ebfc677495c36054c43e6cc03d.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="游戏库" onerror="handleImageError(this)"> 
                        <div class="module-name">Yandex库</div>
                </a>
                <a href="https://playhop.com/zh" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/9001c9854cl8ur9s1j5bidsly95r8b.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="游戏库" onerror="handleImageError(this)">
                        <div class="module-name">Playhop库</div>
                </a>
                <a href="https://www.4399.com/" target="_blank" class="icon-btn">
                    <img src="https://infinityicon.infinitynewtab.com/usericon/21fb3c2130602a370066da5468a02e31.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="游戏库" onerror="handleImageError(this)">
                        <div class="module-name">4399库</div>
                </a>
                <a href="https://www.silvergames.com/zh/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/9001cbjmov4dgns9liexskscbrts0y.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="游戏库" onerror="handleImageError(this)">
                        <div class="module-name">Silvergames库</div>
                </a>
                <a href="https://cn.pigame.cc/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001cjupimhm754qo018so2v6vbyj4.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="游戏库" onerror="handleImageError(this)">
                        <div class="module-name">Pigame库</div>
                </a>
                <a href="https://fun.360.cn/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001dmv71l2gmg4b7qebk8o8n5uq65.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="游戏库" onerror="handleImageError(this)">
                        <div class="module-name">360库</div>
                </a>
                <a href="https://crazygames-poki.com/zh-cn" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001cnomvla4584t3mp0s6oheajkhe.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="游戏库" onerror="handleImageError(this)">
                        <div class="module-name">Crazygames库</div>
                </a>
                <a href="https://www.levo.games/zh/" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001e6vub3jhibujo2h1sh72uztlpl.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="游戏库" onerror="handleImageError(this)">
                        <div class="module-name">乐活游戏</div>
                </a>
                <a href="https://www.17yoo.cn/category/0?pid=PIDZtqsIXql1" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001e7s5aiv17mq5cy97i7mzi014om.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="游戏库" onerror="handleImageError(this)">
                        <div class="module-name">17yoo库</div>
                </a>
                <a href="https://play-games.io/zh" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001dsre3lbvsudi3ms03818paz8cz.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="游戏库" onerror="handleImageError(this)">
                        <div class="module-name">Poki库</div>
                </a>
                <a href="https://zh.y8.com/tags" target="_blank" class="icon-btn">
                    <img src="https://infinitypro-img.infinitynewtab.com/custom-icon/8001cqulj45n9dcigxnm1cl0c6sn9a.png?imageMogr2/thumbnail/120x/format/webp/blur/1x0/quality/100|imageslim" alt="游戏库" onerror="handleImageError(this)">
                        <div class="module-name">Y8库</div>
                </a>
            </div>
        </div>
    </div>
</div>

<script>
    // 默认图标
    function handleImageError(img) {
        const type = img.alt;
        console.error(`图片加载失败: ${img.src}`);
        const defaultSrc = img.dataset.default || './img/default.jpg';
        if (type === "影视" && !img.src.includes('./img/movie.jpg')) {
            img.src = "./img/movie.jpg";
        } else if (type === "音乐库" && !img.src.includes('./img/music.jpg')) {
            img.src = "./img/music.jpg";
        } else if (type === "游戏库" && !img.src.includes('./img/games.jpg')) {
            img.src = "./img/games.jpg";
        } else {
            img.src = defaultSrc;
        }
    }

    function toggleCategory(categoryId) {
        const category = document.getElementById(categoryId);
        const content = category.querySelector('.category-content');
        const arrow = category.querySelector('.arrow');

        if (content.classList.contains('active')) {
            content.style.maxHeight = 'calc(120px + 0.5rem + 1.1rem + 4rem)';
            content.classList.remove('active');
            arrow.innerHTML = '&#9660;';
        } else {
            content.style.maxHeight = content.scrollHeight + 'px';
            content.classList.add('active');
            arrow.innerHTML = '&#9650;';
        }
    }
</script>


<!-- 视频背景 -->
<div id="background-container"></div>

<script>
  const container = document.getElementById('background-container');
  const videoUrl = 'https://video.wetab.link/wallpaper-dynamic/v1gtq6c1g3z5yg0bit0zu13gy7wh.mp4';
  const imageUrl = './img/background.png';

  // 创建视频元素进行测试
  const testVideo = document.createElement('video');
  testVideo.src = videoUrl;

  // 视频可以播放时设置为背景
  testVideo.addEventListener('canplay', () => {
    container.innerHTML = `
      <video 
        autoplay 
        muted 
        loop 
        playsinline 
        style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;"
      >
        <source src="${videoUrl}" type="video/mp4">
      </video>
    `;
  });

  // 视频加载失败时设置图片背景
  testVideo.addEventListener('error', () => {
    container.style.backgroundImage = `url('${imageUrl}')`;
    container.style.backgroundSize = 'cover';
    container.style.backgroundPosition = 'center';
    container.style.width = '100%';
    container.style.height = '100vh';
  });

  // 开始加载视频
  testVideo.load();
</script>
</body>
</html>
    